<div style="width:380px;height:60px;border: 1px solid #eee;text-align: center;float: left">
    <div style="margin-bottom: 3px">
        <span style="font-size: 16px">计算公式</span>
    </div>
    <input id="fumigationChargeCostId" class="easyui-numberbox" data-options="precision:3,prompt:'总价',onChange:fumigationChargeCostOnChange"
           style="width: 40px">/
    <input id="fumigationChargeCostId1" class="easyui-numberbox"  data-options="readonly:'true',prompt:'订单量',onChange:fumigationChargeCostOnChange"
           style="width: 50px" >x
    <input id="fumigationChargeCostId2" class="easyui-numberbox" data-options="precision:3,prompt:'系数',onChange:fumigationChargeCostOnChange" style="width:50px">

</div>
<script>
    function fumigationChargeCostOnChange(a,oldValue) {
        fumigationChargeCostOnChangeFun()
    }
    function fumigationChargeCostOnChangeFun() {
        var a=Number($("#fumigationChargeCostId").numberbox('getValue'));
        var b=Number($("#fumigationChargeCostId1").numberbox('getValue'));
        var c=Number($("#fumigationChargeCostId2").numberbox('getValue'));
        a=a?a:0;
        b=b?b:0;
        c=c?c:0;
        //为自身订单量赋值
        $('#fumigationOrderQuantityCostId').numberbox('setValue',b)
        if (b==0){
            $("#fumigation_charge").numberbox("setValue",0);
        }else {
            $("#fumigation_charge").numberbox("setValue",a/b*c);
        }

    }

</script>